﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Caliburn.Micro;
using GTServices.Entities;
using GTServices.WPF.Client.Interfaces;


namespace GTServices.WPF.Client.ViewModels.Entities
{
    public class BugViewModel : PropertyChangedBase, IEntityViewModel
    {
        private Bug _bug;
        public Bug Bug
        {
            get { return _bug; }
            set
            {
                _bug = value;
                NotifyOfPropertyChange(() => Bug); 
            }
        }

        public Object Model
        {
            get { return Bug; }
            set
            {
                if (value is Bug)
                    Bug = value as Bug;
            }
        }
    }
}
